﻿function TGate1C(connectionInfo)
{
  this.executor = new ServerFunctionExecutor("TGate1C",connectionInfo);

  /*
   * @param DBAlias [in] - Type on server: string
   * @param ModulePath [in] - Type on server: string
   * @param Params [in] - Type on server: TJSONValue
   * @return result - Type on server: TJSONValue
   */
  this.WebExec1CModule = function(DBAlias, ModulePath, Params) {
    var returnObject = this.executor.executeMethod('"WebExec1CModule"', "POST", [DBAlias, ModulePath, Params], arguments[3], true, arguments[4], arguments[5]);
    if (arguments[3] == null) {
      if (returnObject != null && returnObject.result != null && isArray(returnObject.result)) {
        var resultArray = returnObject.result;
        var resultObject = new Object();
        resultObject.DBAlias = DBAlias;
        resultObject.ModulePath = ModulePath;
        resultObject.Params = Params;
        resultObject.result = resultArray[0];
        if (returnObject.cacheId != null && returnObject.cmdIndex != null) {
          resultObject._cacheId = returnObject.cacheId;
          resultObject._cmdIndex = returnObject.cmdIndex;
        }
        return resultObject;
      }
      return returnObject;
    }
  };
}

var JSProxyClassList = {
  "TGate1C": ["WebExec1CModule"]
};

